require(['./config'],() => {
   require(['swiper','header'],(Swiper) => {
     class Index {
       constructor() {
         this.init()
         this.banner()
       }
       init  () {
         $.get('/api/index.php',resp => {
           console.log(resp)
         })
       }
       banner () {
         new Swiper('.swiper-container',{
          //  direction:'verical',
           loop:true,
           pagination: {
             el:'.swiper-pagination'
           },
           autoplay: {
             delay:2000,
             speed:1200
           },
           navigation: {
             nextEl:'.swiper-button-next',
             prevEl:'.swiper-button-prev'
           }
         })
       }
     }
     new Index
   })
  })

  define(() => {
    function Swiper () {

    }
    return Swiper
  })